<?php

namespace Game\Org {
class item_EType {
    /**
     * 货币
     */
    public const Currency = 1;
    /**
     * 消耗品
     */
    public const Consumable = 2;
    /**
     * 皮肤
     */
    public const Skin = 3;
}

class item_EQuality {
    /**
     * 无色
     */
    public const NONE = 1;
    /**
     * 绿色
     */
    public const N = 2;
    /**
     * 蓝色
     */
    public const R = 3;
    /**
     * 紫色
     */
    public const SR = 4;
    /**
     * 金色
     */
    public const SSR = 5;
    /**
     * 红色
     */
    public const SP = 6;
}

class item_EPrimeGroup {
    /**
     * 货币组
     */
    public const Currency = 1;
    /**
     * 背包组
     */
    public const Backpack = 2;
    /**
     * 皮肤组
     */
    public const Skin = 4;
}




 class Item {

    public function __construct($_json_) {
        if (!array_key_exists('id', $_json_)) { throw new \Exception("field:'id' missing"); }
        $this->id = $_json_['id'];
        if (!array_key_exists('name', $_json_)) { throw new \Exception("field:'name' missing"); }
        $this->name = $_json_['name'];
        if (!array_key_exists('invalid', $_json_)) { throw new \Exception("field:'invalid' missing"); }
        $this->invalid = $_json_['invalid'];
        if (!array_key_exists('listOrder', $_json_)) { throw new \Exception("field:'listOrder' missing"); }
        $this->listOrder = $_json_['listOrder'];
        if (!array_key_exists('inShop', $_json_)) { throw new \Exception("field:'inShop' missing"); }
        $this->inShop = $_json_['inShop'];
        if (!array_key_exists('type', $_json_)) { throw new \Exception("field:'type' missing"); }
        $this->type = $_json_['type'];
        if (!array_key_exists('quality', $_json_)) { throw new \Exception("field:'quality' missing"); }
        $this->quality = $_json_['quality'];
        if (!array_key_exists('primeGroup', $_json_)) { throw new \Exception("field:'primeGroup' missing"); }
        $this->primeGroup = $_json_['primeGroup'];
        if (!array_key_exists('secondaryGroup', $_json_)) { throw new \Exception("field:'secondaryGroup' missing"); }
        $this->secondaryGroup = $_json_['secondaryGroup'];
        if (!array_key_exists('canUse', $_json_)) { throw new \Exception("field:'canUse' missing"); }
        $this->canUse = $_json_['canUse'];
    }

    /**
     * 道具id
     */
    public $id;
    /**
     * 名字
     */
    public $name;
    /**
     * 禁用
     */
    public $invalid;
    /**
     * 排序 大的先，相同看ID小的先
     */
    public $listOrder;
    /**
     * 商城可购买
     */
    public $inShop;
    /**
     * 类型
     */
    public $type;
    /**
     * 品质
     */
    public $quality;
    /**
     * 一级分类（1-货币，2-物品，4-皮肤）
     */
    public $primeGroup;
    /**
     * 二级分类
     */
    public $secondaryGroup;
    /**
     * 能使用
     */
    public $canUse;
}



 class Product {

    public function __construct($_json_) {
        if (!array_key_exists('id', $_json_)) { throw new \Exception("field:'id' missing"); }
        $this->id = $_json_['id'];
        if (!array_key_exists('itemList', $_json_)) { throw new \Exception("field:'itemList' missing"); }
        { $this->itemList = []; foreach ($_json_['itemList'] as $_ele0) { { $_e0 = []; foreach ($_ele0 as $_ele1) { $_e1 = $_ele1; array_push($_e0, $_e1);} }; array_push($this->itemList, $_e0);} };
        if (!array_key_exists('cost', $_json_)) { throw new \Exception("field:'cost' missing"); }
        { $this->cost = []; foreach ($_json_['cost'] as $_ele0) { $_e0 = $_ele0; array_push($this->cost, $_e0);} };
        if (!array_key_exists('type', $_json_)) { throw new \Exception("field:'type' missing"); }
        $this->type = $_json_['type'];
        if (!array_key_exists('quality', $_json_)) { throw new \Exception("field:'quality' missing"); }
        $this->quality = $_json_['quality'];
        if (!array_key_exists('limitKey', $_json_)) { throw new \Exception("field:'limitKey' missing"); }
        $this->limitKey = $_json_['limitKey'];
        if (!array_key_exists('isRandom', $_json_)) { throw new \Exception("field:'isRandom' missing"); }
        $this->isRandom = $_json_['isRandom'];
        if (!array_key_exists('qualityWeight', $_json_)) { throw new \Exception("field:'qualityWeight' missing"); }
        { $this->qualityWeight = []; foreach ($_json_['qualityWeight'] as $_ele0) { $_e0 = $_ele0; array_push($this->qualityWeight, $_e0);} };
    }

    /**
     * 商品id
     */
    public $id;
    /**
     * 包含的道具
     */
    public $itemList;
    /**
     * 消耗的物品及数量
     */
    public $cost;
    /**
     * 类型
     */
    public $type;
    /**
     * 品质
     */
    public $quality;
    /**
     * 限制标识(在limit表中)不配置代表无限次数
     */
    public $limitKey;
    /**
     * 是否随机抽取
     */
    public $isRandom;
    /**
     * 品质权重（N,R,SR,SSR,SP）
     */
    public $qualityWeight;
}



 class ShopGroup {

    public function __construct($_json_) {
        if (!array_key_exists('id', $_json_)) { throw new \Exception("field:'id' missing"); }
        $this->id = $_json_['id'];
        if (!array_key_exists('productList', $_json_)) { throw new \Exception("field:'productList' missing"); }
        { $this->productList = []; foreach ($_json_['productList'] as $_ele0) { $_e0 = $_ele0; array_push($this->productList, $_e0);} };
    }

    /**
     * 商品组id
     */
    public $id;
    /**
     * 包含的商品
     */
    public $productList;
}



 class GateColor {

    public function __construct($_json_) {
        if (!array_key_exists('id', $_json_)) { throw new \Exception("field:'id' missing"); }
        $this->id = $_json_['id'];
    }

    /**
     * key
     */
    public $id;
}



 class Task {

    public function __construct($_json_) {
        if (!array_key_exists('id', $_json_)) { throw new \Exception("field:'id' missing"); }
        $this->id = $_json_['id'];
        if (!array_key_exists('type', $_json_)) { throw new \Exception("field:'type' missing"); }
        $this->type = $_json_['type'];
        if (!array_key_exists('totalProgress', $_json_)) { throw new \Exception("field:'totalProgress' missing"); }
        $this->totalProgress = $_json_['totalProgress'];
        if (!array_key_exists('reward', $_json_)) { throw new \Exception("field:'reward' missing"); }
        { $this->reward = []; foreach ($_json_['reward'] as $_ele0) { { $_e0 = []; foreach ($_ele0 as $_ele1) { $_e1 = $_ele1; array_push($_e0, $_e1);} }; array_push($this->reward, $_e0);} };
        if (!array_key_exists('isShow', $_json_)) { throw new \Exception("field:'isShow' missing"); }
        $this->isShow = $_json_['isShow'];
        if (!array_key_exists('actionUrl', $_json_)) { throw new \Exception("field:'actionUrl' missing"); }
        $this->actionUrl = $_json_['actionUrl'];
        if (!array_key_exists('actionParams', $_json_)) { throw new \Exception("field:'actionParams' missing"); }
        { $this->actionParams = []; foreach ($_json_['actionParams'] as $_ele0) { { $_e0 = []; foreach ($_ele0 as $_ele1) { $_e1 = $_ele1; array_push($_e0, $_e1);} }; array_push($this->actionParams, $_e0);} };
        if (!array_key_exists('paramsLogic', $_json_)) { throw new \Exception("field:'paramsLogic' missing"); }
        $this->paramsLogic = $_json_['paramsLogic'];
    }

    /**
     * 任务id
     */
    public $id;
    /**
     * 类型
     */
    public $type;
    /**
     * 总进度
     */
    public $totalProgress;
    /**
     * 奖励列表
     */
    public $reward;
    /**
     * 是否在每日任务中显示
     */
    public $isShow;
    /**
     * 请求路径
     */
    public $actionUrl;
    /**
     * 请求参数
     */
    public $actionParams;
    /**
     * 参数逻辑(and/or)
     */
    public $paramsLogic;
}



 class TaskType {

    public function __construct($_json_) {
        if (!array_key_exists('id', $_json_)) { throw new \Exception("field:'id' missing"); }
        $this->id = $_json_['id'];
    }

    /**
     * 类型
     */
    public $id;
}



 class EarlyAccessConfig {

    public function __construct($_json_) {
        if (!array_key_exists('id', $_json_)) { throw new \Exception("field:'id' missing"); }
        $this->id = $_json_['id'];
        if (!array_key_exists('reward', $_json_)) { throw new \Exception("field:'reward' missing"); }
        { $this->reward = []; foreach ($_json_['reward'] as $_ele0) { { $_e0 = []; foreach ($_ele0 as $_ele1) { $_e1 = $_ele1; array_push($_e0, $_e1);} }; array_push($this->reward, $_e0);} };
        if (!array_key_exists('startTime', $_json_)) { throw new \Exception("field:'startTime' missing"); }
        $this->startTime = $_json_['startTime'];
        if (!array_key_exists('endTime', $_json_)) { throw new \Exception("field:'endTime' missing"); }
        $this->endTime = $_json_['endTime'];
        if (!array_key_exists('type', $_json_)) { throw new \Exception("field:'type' missing"); }
        $this->type = $_json_['type'];
    }

    /**
     * 活动id
     */
    public $id;
    /**
     * 奖励列表
     */
    public $reward;
    /**
     * 开始时间
     */
    public $startTime;
    /**
     * 结束时间
     */
    public $endTime;
    /**
     * 活动类型
     */
    public $type;
}



 class Idol {

    public function __construct($_json_) {
        if (!array_key_exists('id', $_json_)) { throw new \Exception("field:'id' missing"); }
        $this->id = $_json_['id'];
        if (!array_key_exists('name', $_json_)) { throw new \Exception("field:'name' missing"); }
        $this->name = $_json_['name'];
        if (!array_key_exists('isFriend', $_json_)) { throw new \Exception("field:'isFriend' missing"); }
        $this->isFriend = $_json_['isFriend'];
        if (!array_key_exists('desc', $_json_)) { throw new \Exception("field:'desc' missing"); }
        $this->desc = $_json_['desc'];
        if (!array_key_exists('avatar', $_json_)) { throw new \Exception("field:'avatar' missing"); }
        $this->avatar = $_json_['avatar'];
        if (!array_key_exists('roomIcon', $_json_)) { throw new \Exception("field:'roomIcon' missing"); }
        $this->roomIcon = $_json_['roomIcon'];
        if (!array_key_exists('reward', $_json_)) { throw new \Exception("field:'reward' missing"); }
        { $this->reward = []; foreach ($_json_['reward'] as $_ele0) { { $_e0 = []; foreach ($_ele0 as $_ele1) { $_e1 = $_ele1; array_push($_e0, $_e1);} }; array_push($this->reward, $_e0);} };
        if (!array_key_exists('color', $_json_)) { throw new \Exception("field:'color' missing"); }
        $this->color = $_json_['color'];
        if (!array_key_exists('borderColor', $_json_)) { throw new \Exception("field:'borderColor' missing"); }
        $this->borderColor = $_json_['borderColor'];
        if (!array_key_exists('bgColor', $_json_)) { throw new \Exception("field:'bgColor' missing"); }
        $this->bgColor = $_json_['bgColor'];
        if (!array_key_exists('roomTitle', $_json_)) { throw new \Exception("field:'roomTitle' missing"); }
        $this->roomTitle = $_json_['roomTitle'];
        if (!array_key_exists('cardImage', $_json_)) { throw new \Exception("field:'cardImage' missing"); }
        $this->cardImage = $_json_['cardImage'];
        if (!array_key_exists('cardVideo', $_json_)) { throw new \Exception("field:'cardVideo' missing"); }
        $this->cardVideo = $_json_['cardVideo'];
    }

    /**
     * 羁绊ID
     */
    public $id;
    /**
     * 名字
     */
    public $name;
    /**
     * 挚友卡
     */
    public $isFriend;
    /**
     * 描述
     */
    public $desc;
    /**
     * 羁绊头像
     */
    public $avatar;
    /**
     * 小屋图标
     */
    public $roomIcon;
    /**
     * 奖励列表
     */
    public $reward;
    /**
     * 专属颜色
     */
    public $color;
    /**
     * 专属文字框颜色
     */
    public $borderColor;
    /**
     * 专属背景颜色
     */
    public $bgColor;
    /**
     * 小屋名
     */
    public $roomTitle;
    /**
     * 羁绊卡图片
     */
    public $cardImage;
    /**
     * 羁绊卡视频
     */
    public $cardVideo;
}



 class Chapter {

    public function __construct($_json_) {
        if (!array_key_exists('id', $_json_)) { throw new \Exception("field:'id' missing"); }
        $this->id = $_json_['id'];
        if (!array_key_exists('stages', $_json_)) { throw new \Exception("field:'stages' missing"); }
        { $this->stages = []; foreach ($_json_['stages'] as $_ele0) { $_e0 = $_ele0; array_push($this->stages, $_e0);} };
        if (!array_key_exists('isChallenge', $_json_)) { throw new \Exception("field:'isChallenge' missing"); }
        $this->isChallenge = $_json_['isChallenge'];
    }

    /**
     * 章节id
     */
    public $id;
    /**
     * 包含的关卡id
     */
    public $stages;
    /**
     * 挑战章节
     */
    public $isChallenge;
}



 class Stage {

    public function __construct($_json_) {
        if (!array_key_exists('id', $_json_)) { throw new \Exception("field:'id' missing"); }
        $this->id = $_json_['id'];
        if (!array_key_exists('stageType', $_json_)) { throw new \Exception("field:'stageType' missing"); }
        $this->stageType = $_json_['stageType'];
        if (!array_key_exists('costEnergy', $_json_)) { throw new \Exception("field:'costEnergy' missing"); }
        $this->costEnergy = $_json_['costEnergy'];
        if (!array_key_exists('stageReward', $_json_)) { throw new \Exception("field:'stageReward' missing"); }
        { $this->stageReward = []; foreach ($_json_['stageReward'] as $_ele0) { { $_e0 = []; foreach ($_ele0 as $_ele1) { $_e1 = $_ele1; array_push($_e0, $_e1);} }; array_push($this->stageReward, $_e0);} };
        if (!array_key_exists('parkourReward', $_json_)) { throw new \Exception("field:'parkourReward' missing"); }
        { $this->parkourReward = []; foreach ($_json_['parkourReward'] as $_ele0) { { $_e0 = []; foreach ($_ele0 as $_ele1) { $_e1 = $_ele1; array_push($_e0, $_e1);} }; array_push($this->parkourReward, $_e0);} };
        if (!array_key_exists('rewardType', $_json_)) { throw new \Exception("field:'rewardType' missing"); }
        $this->rewardType = $_json_['rewardType'];
        if (!array_key_exists('requireLevel', $_json_)) { throw new \Exception("field:'requireLevel' missing"); }
        $this->requireLevel = $_json_['requireLevel'];
        if (!array_key_exists('requireStage', $_json_)) { throw new \Exception("field:'requireStage' missing"); }
        $this->requireStage = $_json_['requireStage'];
        if (!array_key_exists('upgrade', $_json_)) { throw new \Exception("field:'upgrade' missing"); }
        { $this->upgrade = []; foreach ($_json_['upgrade'] as $_ele0) { { $_e0 = []; foreach ($_ele0 as $_ele1) { $_e1 = $_ele1; array_push($_e0, $_e1);} }; array_push($this->upgrade, $_e0);} };
    }

    /**
     * 关卡id
     */
    public $id;
    /**
     * 关卡类型<br/>（1-主线，2-挑战）
     */
    public $stageType;
    /**
     * 扣除体力点数
     */
    public $costEnergy;
    /**
     * 通关物品奖励<br/>（外部UI领取）
     */
    public $stageReward;
    /**
     * 跑酷内领取的奖励
     */
    public $parkourReward;
    /**
     * 奖励类型<br/>（1-固定，2-随机）
     */
    public $rewardType;
    /**
     * 需要等级
     */
    public $requireLevel;
    /**
     * 需要完成的主线关卡
     */
    public $requireStage;
    /**
     * 玩家奖励（经验值、亲密度等）
     */
    public $upgrade;
}



 class Limit {

    public function __construct($_json_) {
        if (!array_key_exists('id', $_json_)) { throw new \Exception("field:'id' missing"); }
        $this->id = $_json_['id'];
        if (!array_key_exists('name', $_json_)) { throw new \Exception("field:'name' missing"); }
        $this->name = $_json_['name'];
        if (!array_key_exists('maxLimit', $_json_)) { throw new \Exception("field:'maxLimit' missing"); }
        $this->maxLimit = $_json_['maxLimit'];
        if (!array_key_exists('expireTime', $_json_)) { throw new \Exception("field:'expireTime' missing"); }
        $this->expireTime = $_json_['expireTime'];
        if (!array_key_exists('actionUrl', $_json_)) { throw new \Exception("field:'actionUrl' missing"); }
        $this->actionUrl = $_json_['actionUrl'];
        if (!array_key_exists('actionParams', $_json_)) { throw new \Exception("field:'actionParams' missing"); }
        { $this->actionParams = []; foreach ($_json_['actionParams'] as $_ele0) { { $_e0 = []; foreach ($_ele0 as $_ele1) { $_e1 = $_ele1; array_push($_e0, $_e1);} }; array_push($this->actionParams, $_e0);} };
        if (!array_key_exists('paramsLogic', $_json_)) { throw new \Exception("field:'paramsLogic' missing"); }
        $this->paramsLogic = $_json_['paramsLogic'];
    }

    /**
     * 活动id
     */
    public $id;
    /**
     * 限制行为
     */
    public $name;
    /**
     * 限制次数
     */
    public $maxLimit;
    /**
     * 过期时间
     */
    public $expireTime;
    /**
     * 请求路径
     */
    public $actionUrl;
    /**
     * 请求参数
     */
    public $actionParams;
    /**
     * 参数逻辑(and/or)
     */
    public $paramsLogic;
}



 class LevelExp {

    public function __construct($_json_) {
        if (!array_key_exists('id', $_json_)) { throw new \Exception("field:'id' missing"); }
        $this->id = $_json_['id'];
        if (!array_key_exists('exp', $_json_)) { throw new \Exception("field:'exp' missing"); }
        $this->exp = $_json_['exp'];
        if (!array_key_exists('totalExp', $_json_)) { throw new \Exception("field:'totalExp' missing"); }
        $this->totalExp = $_json_['totalExp'];
    }

    /**
     * 等级
     */
    public $id;
    /**
     * 升级所需经验
     */
    public $exp;
    /**
     * 总经验
     */
    public $totalExp;
}



 class LevelFavorability {

    public function __construct($_json_) {
        if (!array_key_exists('id', $_json_)) { throw new \Exception("field:'id' missing"); }
        $this->id = $_json_['id'];
        if (!array_key_exists('favorability', $_json_)) { throw new \Exception("field:'favorability' missing"); }
        $this->favorability = $_json_['favorability'];
        if (!array_key_exists('totalFavorability', $_json_)) { throw new \Exception("field:'totalFavorability' missing"); }
        $this->totalFavorability = $_json_['totalFavorability'];
    }

    /**
     * 羁绊等级
     */
    public $id;
    /**
     * 升级经验
     */
    public $favorability;
    /**
     * 总经验
     */
    public $totalFavorability;
}



 class StageConfig {

    public function __construct($_json_) {
        if (!array_key_exists('full_energy', $_json_)) { throw new \Exception("field:'full_energy' missing"); }
        $this->fullEnergy = $_json_['full_energy'];
        if (!array_key_exists('energy_recover_time', $_json_)) { throw new \Exception("field:'energy_recover_time' missing"); }
        $this->energyRecoverTime = $_json_['energy_recover_time'];
    }

    /**
     * 满体力
     */
    public $fullEnergy;
    /**
     * 每一点体力的回复时间（分钟）
     */
    public $energyRecoverTime;
}



 class ItemUse {

    public function __construct($_json_) {
        if (!array_key_exists('id', $_json_)) { throw new \Exception("field:'id' missing"); }
        $this->id = $_json_['id'];
        if (!array_key_exists('invalid', $_json_)) { throw new \Exception("field:'invalid' missing"); }
        $this->invalid = $_json_['invalid'];
        if (!array_key_exists('itemKey', $_json_)) { throw new \Exception("field:'itemKey' missing"); }
        $this->itemKey = $_json_['itemKey'];
        if (!array_key_exists('params', $_json_)) { throw new \Exception("field:'params' missing"); }
        {$this->params = []; foreach ($_json_['params'] as $e0) { $_k0 = $e0[0]; $_v0 = new item_Params($e0[1]); $this->params[$_k0] = $_v0; } };
    }

    /**
     * 道具id
     */
    public $id;
    /**
     * 禁用
     */
    public $invalid;
    /**
     * KEY，用来做标记符
     */
    public $itemKey;
    /**
     * 参数列表，用来记录对应的作用
     */
    public $params;
}



 class item_Params {

    public function __construct($_json_) {
        if (!array_key_exists('value', $_json_)) { throw new \Exception("field:'value' missing"); }
        $this->value = $_json_['value'];
    }

    public $value;
}



 class ParkourReward {

    public function __construct($_json_) {
        if (!array_key_exists('id', $_json_)) { throw new \Exception("field:'id' missing"); }
        $this->id = $_json_['id'];
        if (!array_key_exists('distance', $_json_)) { throw new \Exception("field:'distance' missing"); }
        $this->distance = $_json_['distance'];
        if (!array_key_exists('basicReward', $_json_)) { throw new \Exception("field:'basicReward' missing"); }
        { $this->basicReward = []; foreach ($_json_['basicReward'] as $_ele0) { { $_e0 = []; foreach ($_ele0 as $_ele1) { { $_e1 = []; foreach ($_ele1 as $_ele2) { $_e2 = $_ele2; array_push($_e1, $_e2);} }; array_push($_e0, $_e1);} }; array_push($this->basicReward, $_e0);} };
        if (!array_key_exists('dynamicReward', $_json_)) { throw new \Exception("field:'dynamicReward' missing"); }
        { $this->dynamicReward = []; foreach ($_json_['dynamicReward'] as $_ele0) { { $_e0 = []; foreach ($_ele0 as $_ele1) { { $_e1 = []; foreach ($_ele1 as $_ele2) { $_e2 = $_ele2; array_push($_e1, $_e2);} }; array_push($_e0, $_e1);} }; array_push($this->dynamicReward, $_e0);} };
        if (!array_key_exists('randomReward', $_json_)) { throw new \Exception("field:'randomReward' missing"); }
        { $this->randomReward = []; foreach ($_json_['randomReward'] as $_ele0) { { $_e0 = []; foreach ($_ele0 as $_ele1) { $_e1 = $_ele1; array_push($_e0, $_e1);} }; array_push($this->randomReward, $_e0);} };
    }

    /**
     * 关卡id
     */
    public $id;
    /**
     * 距离
     */
    public $distance;
    /**
     * 基础奖励（必得）
     */
    public $basicReward;
    /**
     * 动态奖励（计算加成）
     */
    public $dynamicReward;
    /**
     * 额外随机奖励（暂无）
     */
    public $randomReward;
}



 class GameGuideGroup {

    public function __construct($_json_) {
        if (!array_key_exists('id', $_json_)) { throw new \Exception("field:'id' missing"); }
        $this->id = $_json_['id'];
        if (!array_key_exists('actionUrl', $_json_)) { throw new \Exception("field:'actionUrl' missing"); }
        $this->actionUrl = $_json_['actionUrl'];
        if (!array_key_exists('actionParams', $_json_)) { throw new \Exception("field:'actionParams' missing"); }
        { $this->actionParams = []; foreach ($_json_['actionParams'] as $_ele0) { { $_e0 = []; foreach ($_ele0 as $_ele1) { $_e1 = $_ele1; array_push($_e0, $_e1);} }; array_push($this->actionParams, $_e0);} };
        if (!array_key_exists('paramsLogic', $_json_)) { throw new \Exception("field:'paramsLogic' missing"); }
        $this->paramsLogic = $_json_['paramsLogic'];
    }

    /**
     * id
     */
    public $id;
    /**
     * 判断用户信息userInfo的键值
     */
    public $actionUrl;
    /**
     * 判断用户信息userInfo的值，如果是TRUE/FALSE则表示Bool判断
     */
    public $actionParams;
    /**
     * 参数逻辑(and/or)
     */
    public $paramsLogic;
}



 class RankSupport {

    public function __construct($_json_) {
        if (!array_key_exists('id', $_json_)) { throw new \Exception("field:'id' missing"); }
        $this->id = $_json_['id'];
        if (!array_key_exists('rank1', $_json_)) { throw new \Exception("field:'rank1' missing"); }
        $this->rank1 = $_json_['rank1'];
        if (!array_key_exists('rank2', $_json_)) { throw new \Exception("field:'rank2' missing"); }
        $this->rank2 = $_json_['rank2'];
        if (!array_key_exists('rank3', $_json_)) { throw new \Exception("field:'rank3' missing"); }
        $this->rank3 = $_json_['rank3'];
        if (!array_key_exists('rank4', $_json_)) { throw new \Exception("field:'rank4' missing"); }
        $this->rank4 = $_json_['rank4'];
        if (!array_key_exists('rank5', $_json_)) { throw new \Exception("field:'rank5' missing"); }
        $this->rank5 = $_json_['rank5'];
        if (!array_key_exists('rank6', $_json_)) { throw new \Exception("field:'rank6' missing"); }
        $this->rank6 = $_json_['rank6'];
        if (!array_key_exists('rank7', $_json_)) { throw new \Exception("field:'rank7' missing"); }
        $this->rank7 = $_json_['rank7'];
        if (!array_key_exists('rank8', $_json_)) { throw new \Exception("field:'rank8' missing"); }
        $this->rank8 = $_json_['rank8'];
    }

    /**
     * 排名
     */
    public $id;
    public $rank1;
    public $rank2;
    public $rank3;
    public $rank4;
    public $rank5;
    public $rank6;
    public $rank7;
    public $rank8;
}



 class CodeReward {

    public function __construct($_json_) {
        if (!array_key_exists('id', $_json_)) { throw new \Exception("field:'id' missing"); }
        $this->id = $_json_['id'];
        if (!array_key_exists('code', $_json_)) { throw new \Exception("field:'code' missing"); }
        $this->code = $_json_['code'];
        if (!array_key_exists('title', $_json_)) { throw new \Exception("field:'title' missing"); }
        $this->title = $_json_['title'];
        if (!array_key_exists('type', $_json_)) { throw new \Exception("field:'type' missing"); }
        $this->type = $_json_['type'];
        if (!array_key_exists('key', $_json_)) { throw new \Exception("field:'key' missing"); }
        $this->key = $_json_['key'];
        if (!array_key_exists('reward', $_json_)) { throw new \Exception("field:'reward' missing"); }
        { $this->reward = []; foreach ($_json_['reward'] as $_ele0) { { $_e0 = []; foreach ($_ele0 as $_ele1) { $_e1 = $_ele1; array_push($_e0, $_e1);} }; array_push($this->reward, $_e0);} };
        if (!array_key_exists('typeUnique', $_json_)) { throw new \Exception("field:'typeUnique' missing"); }
        $this->typeUnique = $_json_['typeUnique'];
        if (!array_key_exists('status', $_json_)) { throw new \Exception("field:'status' missing"); }
        $this->status = $_json_['status'];
        if (!array_key_exists('desc', $_json_)) { throw new \Exception("field:'desc' missing"); }
        $this->desc = $_json_['desc'];
    }

    /**
     * ID
     */
    public $id;
    /**
     * 福利码
     */
    public $code;
    /**
     * 标题
     */
    public $title;
    /**
     * 类型
     */
    public $type;
    /**
     * KEY
     */
    public $key;
    /**
     * 奖品
     */
    public $reward;
    /**
     * 同类型唯一
     */
    public $typeUnique;
    /**
     * 状态（1为有效）
     */
    public $status;
    /**
     * 说明
     */
    public $desc;
}




/**
 * 道具配置
 */
class item_TbItem {
    private $_dataMap;
    private $_dataList;
    public function __construct($_json_) {
        $this->_dataMap = [];
        $this->_dataList = [];
        foreach ($_json_ as $_json2_) {
            $_v = new Item($_json2_);
            array_push($this->_dataList, $_v);
            $this->_dataMap[$_v->id] = $_v;
        }
    }

    public function getDataMap() { return $this->_dataMap; }
    public function getDataList() { return $this->_dataList; }

    public function get($key) { return $this->_dataMap[$key]; }


}


/**
 * 商品配置
 */
class shop_TbProduct {
    private $_dataMap;
    private $_dataList;
    public function __construct($_json_) {
        $this->_dataMap = [];
        $this->_dataList = [];
        foreach ($_json_ as $_json2_) {
            $_v = new Product($_json2_);
            array_push($this->_dataList, $_v);
            $this->_dataMap[$_v->id] = $_v;
        }
    }

    public function getDataMap() { return $this->_dataMap; }
    public function getDataList() { return $this->_dataList; }

    public function get($key) { return $this->_dataMap[$key]; }


}


/**
 * 商店组配置
 */
class shop_TbShopGroup {
    private $_dataMap;
    private $_dataList;
    public function __construct($_json_) {
        $this->_dataMap = [];
        $this->_dataList = [];
        foreach ($_json_ as $_json2_) {
            $_v = new ShopGroup($_json2_);
            array_push($this->_dataList, $_v);
            $this->_dataMap[$_v->id] = $_v;
        }
    }

    public function getDataMap() { return $this->_dataMap; }
    public function getDataList() { return $this->_dataList; }

    public function get($key) { return $this->_dataMap[$key]; }


}


class level_TbGateColor {
    private $_dataMap;
    private $_dataList;
    public function __construct($_json_) {
        $this->_dataMap = [];
        $this->_dataList = [];
        foreach ($_json_ as $_json2_) {
            $_v = new GateColor($_json2_);
            array_push($this->_dataList, $_v);
            $this->_dataMap[$_v->id] = $_v;
        }
    }

    public function getDataMap() { return $this->_dataMap; }
    public function getDataList() { return $this->_dataList; }

    public function get($key) { return $this->_dataMap[$key]; }


}


/**
 * 日常任务配置
 */
class task_TbDailyTask {
    private $_dataMap;
    private $_dataList;
    public function __construct($_json_) {
        $this->_dataMap = [];
        $this->_dataList = [];
        foreach ($_json_ as $_json2_) {
            $_v = new Task($_json2_);
            array_push($this->_dataList, $_v);
            $this->_dataMap[$_v->id] = $_v;
        }
    }

    public function getDataMap() { return $this->_dataMap; }
    public function getDataList() { return $this->_dataList; }

    public function get($key) { return $this->_dataMap[$key]; }


}


/**
 * 任务类型配置
 */
class task_TbTaskType {
    private $_dataMap;
    private $_dataList;
    public function __construct($_json_) {
        $this->_dataMap = [];
        $this->_dataList = [];
        foreach ($_json_ as $_json2_) {
            $_v = new TaskType($_json2_);
            array_push($this->_dataList, $_v);
            $this->_dataMap[$_v->id] = $_v;
        }
    }

    public function getDataMap() { return $this->_dataMap; }
    public function getDataList() { return $this->_dataList; }

    public function get($key) { return $this->_dataMap[$key]; }


}


/**
 * 抢先体验活动配置
 */
class activity_TbEarlyAccess {
    private $_dataMap;
    private $_dataList;
    public function __construct($_json_) {
        $this->_dataMap = [];
        $this->_dataList = [];
        foreach ($_json_ as $_json2_) {
            $_v = new EarlyAccessConfig($_json2_);
            array_push($this->_dataList, $_v);
            $this->_dataMap[$_v->id] = $_v;
        }
    }

    public function getDataMap() { return $this->_dataMap; }
    public function getDataList() { return $this->_dataList; }

    public function get($key) { return $this->_dataMap[$key]; }


}


/**
 * 羁绊配置
 */
class idol_TbIdol {
    private $_dataMap;
    private $_dataList;
    public function __construct($_json_) {
        $this->_dataMap = [];
        $this->_dataList = [];
        foreach ($_json_ as $_json2_) {
            $_v = new Idol($_json2_);
            array_push($this->_dataList, $_v);
            $this->_dataMap[$_v->id] = $_v;
        }
    }

    public function getDataMap() { return $this->_dataMap; }
    public function getDataList() { return $this->_dataList; }

    public function get($key) { return $this->_dataMap[$key]; }


}


/**
 * 章节信息配置
 */
class stage_TbChapter {
    private $_dataMap;
    private $_dataList;
    public function __construct($_json_) {
        $this->_dataMap = [];
        $this->_dataList = [];
        foreach ($_json_ as $_json2_) {
            $_v = new Chapter($_json2_);
            array_push($this->_dataList, $_v);
            $this->_dataMap[$_v->id] = $_v;
        }
    }

    public function getDataMap() { return $this->_dataMap; }
    public function getDataList() { return $this->_dataList; }

    public function get($key) { return $this->_dataMap[$key]; }


}


/**
 * 关卡信息配置
 */
class stage_TbStage {
    private $_dataMap;
    private $_dataList;
    public function __construct($_json_) {
        $this->_dataMap = [];
        $this->_dataList = [];
        foreach ($_json_ as $_json2_) {
            $_v = new Stage($_json2_);
            array_push($this->_dataList, $_v);
            $this->_dataMap[$_v->id] = $_v;
        }
    }

    public function getDataMap() { return $this->_dataMap; }
    public function getDataList() { return $this->_dataList; }

    public function get($key) { return $this->_dataMap[$key]; }


}


/**
 * 每日限定项目
 */
class limit_TbLimit {
    private $_dataMap;
    private $_dataList;
    public function __construct($_json_) {
        $this->_dataMap = [];
        $this->_dataList = [];
        foreach ($_json_ as $_json2_) {
            $_v = new Limit($_json2_);
            array_push($this->_dataList, $_v);
            $this->_dataMap[$_v->id] = $_v;
        }
    }

    public function getDataMap() { return $this->_dataMap; }
    public function getDataList() { return $this->_dataList; }

    public function get($key) { return $this->_dataMap[$key]; }


}


/**
 * 经验值等级对照表
 */
class level_TbExp {
    private $_dataMap;
    private $_dataList;
    public function __construct($_json_) {
        $this->_dataMap = [];
        $this->_dataList = [];
        foreach ($_json_ as $_json2_) {
            $_v = new LevelExp($_json2_);
            array_push($this->_dataList, $_v);
            $this->_dataMap[$_v->id] = $_v;
        }
    }

    public function getDataMap() { return $this->_dataMap; }
    public function getDataList() { return $this->_dataList; }

    public function get($key) { return $this->_dataMap[$key]; }


}


/**
 * 亲密度等级对照表
 */
class level_TbFavorability {
    private $_dataMap;
    private $_dataList;
    public function __construct($_json_) {
        $this->_dataMap = [];
        $this->_dataList = [];
        foreach ($_json_ as $_json2_) {
            $_v = new LevelFavorability($_json2_);
            array_push($this->_dataList, $_v);
            $this->_dataMap[$_v->id] = $_v;
        }
    }

    public function getDataMap() { return $this->_dataMap; }
    public function getDataList() { return $this->_dataList; }

    public function get($key) { return $this->_dataMap[$key]; }


}


/**
 * 全局关卡相关配置表
 */
class config_TbStageConfig {

    private $_data;
    public function __construct($_json_) {
        if (count($_json_) != 1) throw new \Exception('table:TbStageConfig mode=one, but size != 1');
        $this->_data = new StageConfig($_json_[0]);
    }

    public function getData() { return $this->_data; }

    /**
     * 满体力
     */
    public function getfullEnergy() { return $this->_data->fullEnergy; }
    /**
     * 每一点体力的回复时间（分钟）
     */
    public function getenergyRecoverTime() { return $this->_data->energyRecoverTime; }

    
}


/**
 * 物品使用表
 */
class item_TbItemUse {
    private $_dataMap;
    private $_dataList;
    public function __construct($_json_) {
        $this->_dataMap = [];
        $this->_dataList = [];
        foreach ($_json_ as $_json2_) {
            $_v = new ItemUse($_json2_);
            array_push($this->_dataList, $_v);
            $this->_dataMap[$_v->id] = $_v;
        }
    }

    public function getDataMap() { return $this->_dataMap; }
    public function getDataList() { return $this->_dataList; }

    public function get($key) { return $this->_dataMap[$key]; }


}


/**
 * 跑酷奖励表
 */
class stage_TbParkourReward {
    private $_dataMap;
    private $_dataList;
    public function __construct($_json_) {
        $this->_dataMap = [];
        $this->_dataList = [];
        foreach ($_json_ as $_json2_) {
            $_v = new ParkourReward($_json2_);
            array_push($this->_dataList, $_v);
            $this->_dataMap[$_v->id] = $_v;
        }
    }

    public function getDataMap() { return $this->_dataMap; }
    public function getDataList() { return $this->_dataList; }

    public function get($key) { return $this->_dataMap[$key]; }


}


/**
 * 游戏引导组配置
 */
class guide_TbGameGuideGroup {
    private $_dataMap;
    private $_dataList;
    public function __construct($_json_) {
        $this->_dataMap = [];
        $this->_dataList = [];
        foreach ($_json_ as $_json2_) {
            $_v = new GameGuideGroup($_json2_);
            array_push($this->_dataList, $_v);
            $this->_dataMap[$_v->id] = $_v;
        }
    }

    public function getDataMap() { return $this->_dataMap; }
    public function getDataList() { return $this->_dataList; }

    public function get($key) { return $this->_dataMap[$key]; }


}


/**
 * 排行榜奖励
 */
class rank_TbRankSupport {
    private $_dataMap;
    private $_dataList;
    public function __construct($_json_) {
        $this->_dataMap = [];
        $this->_dataList = [];
        foreach ($_json_ as $_json2_) {
            $_v = new RankSupport($_json2_);
            array_push($this->_dataList, $_v);
            $this->_dataMap[$_v->id] = $_v;
        }
    }

    public function getDataMap() { return $this->_dataMap; }
    public function getDataList() { return $this->_dataList; }

    public function get($key) { return $this->_dataMap[$key]; }


}


/**
 * 福利码
 */
class reward_TbCodeReward {
    private $_dataMap;
    private $_dataList;
    public function __construct($_json_) {
        $this->_dataMap = [];
        $this->_dataList = [];
        foreach ($_json_ as $_json2_) {
            $_v = new CodeReward($_json2_);
            array_push($this->_dataList, $_v);
            $this->_dataMap[$_v->id] = $_v;
        }
    }

    public function getDataMap() { return $this->_dataMap; }
    public function getDataList() { return $this->_dataList; }

    public function get($key) { return $this->_dataMap[$key]; }


}


class Tables {
    private $_TbItem;
    /**
     * 道具配置
     */
    public function getTbItem() { return $this->_TbItem; }
    private $_TbProduct;
    /**
     * 商品配置
     */
    public function getTbProduct() { return $this->_TbProduct; }
    private $_TbShopGroup;
    /**
     * 商店组配置
     */
    public function getTbShopGroup() { return $this->_TbShopGroup; }
    private $_TbGateColor;
    public function getTbGateColor() { return $this->_TbGateColor; }
    private $_TbDailyTask;
    /**
     * 日常任务配置
     */
    public function getTbDailyTask() { return $this->_TbDailyTask; }
    private $_TbTaskType;
    /**
     * 任务类型配置
     */
    public function getTbTaskType() { return $this->_TbTaskType; }
    private $_TbEarlyAccess;
    /**
     * 抢先体验活动配置
     */
    public function getTbEarlyAccess() { return $this->_TbEarlyAccess; }
    private $_TbIdol;
    /**
     * 羁绊配置
     */
    public function getTbIdol() { return $this->_TbIdol; }
    private $_TbChapter;
    /**
     * 章节信息配置
     */
    public function getTbChapter() { return $this->_TbChapter; }
    private $_TbStage;
    /**
     * 关卡信息配置
     */
    public function getTbStage() { return $this->_TbStage; }
    private $_TbLimit;
    /**
     * 每日限定项目
     */
    public function getTbLimit() { return $this->_TbLimit; }
    private $_TbExp;
    /**
     * 经验值等级对照表
     */
    public function getTbExp() { return $this->_TbExp; }
    private $_TbFavorability;
    /**
     * 亲密度等级对照表
     */
    public function getTbFavorability() { return $this->_TbFavorability; }
    private $_TbStageConfig;
    /**
     * 全局关卡相关配置表
     */
    public function getTbStageConfig() { return $this->_TbStageConfig; }
    private $_TbItemUse;
    /**
     * 物品使用表
     */
    public function getTbItemUse() { return $this->_TbItemUse; }
    private $_TbParkourReward;
    /**
     * 跑酷奖励表
     */
    public function getTbParkourReward() { return $this->_TbParkourReward; }
    private $_TbGameGuideGroup;
    /**
     * 游戏引导组配置
     */
    public function getTbGameGuideGroup() { return $this->_TbGameGuideGroup; }
    private $_TbRankSupport;
    /**
     * 排行榜奖励
     */
    public function getTbRankSupport() { return $this->_TbRankSupport; }
    private $_TbCodeReward;
    /**
     * 福利码
     */
    public function getTbCodeReward() { return $this->_TbCodeReward; }

    public function __construct($loader) {
        $this->_TbItem = new item_TbItem($loader('item_tbitem'));
        $this->_TbProduct = new shop_TbProduct($loader('shop_tbproduct'));
        $this->_TbShopGroup = new shop_TbShopGroup($loader('shop_tbshopgroup'));
        $this->_TbGateColor = new level_TbGateColor($loader('level_tbgatecolor'));
        $this->_TbDailyTask = new task_TbDailyTask($loader('task_tbdailytask'));
        $this->_TbTaskType = new task_TbTaskType($loader('task_tbtasktype'));
        $this->_TbEarlyAccess = new activity_TbEarlyAccess($loader('activity_tbearlyaccess'));
        $this->_TbIdol = new idol_TbIdol($loader('idol_tbidol'));
        $this->_TbChapter = new stage_TbChapter($loader('stage_tbchapter'));
        $this->_TbStage = new stage_TbStage($loader('stage_tbstage'));
        $this->_TbLimit = new limit_TbLimit($loader('limit_tblimit'));
        $this->_TbExp = new level_TbExp($loader('level_tbexp'));
        $this->_TbFavorability = new level_TbFavorability($loader('level_tbfavorability'));
        $this->_TbStageConfig = new config_TbStageConfig($loader('config_tbstageconfig'));
        $this->_TbItemUse = new item_TbItemUse($loader('item_tbitemuse'));
        $this->_TbParkourReward = new stage_TbParkourReward($loader('stage_tbparkourreward'));
        $this->_TbGameGuideGroup = new guide_TbGameGuideGroup($loader('guide_tbgameguidegroup'));
        $this->_TbRankSupport = new rank_TbRankSupport($loader('rank_tbranksupport'));
        $this->_TbCodeReward = new reward_TbCodeReward($loader('reward_tbcodereward'));
    }
}

}
